#include <types.h>
#include <vfs/mount.h>
#include <vfs/file.h>
#include <vfs/vfs.h>
#include <klibc/malloc.h>

file_t *
vfs_open(char *path, char *flags)
{
	/* check if file exist */
	
	/* get file data */
	
	/* allocate the opened file */
	file_t *f = (file_t *) malloc(sizeof(file_t));
	f->pos = 0;
	f->next = filelist;
	filelist = f;
	
	return (file_t *) f;
}


int 
vfs_read(file_t *fid, char *buf, int size)
{
	return -1;
}


int 
vfs_write(file_t *fid, char *buf, int size)
{
	return -1;
}


void
vfs_close(file_t *fid)
{
}


int 
vfs_stat(char *path, struct stat_t *stat)
{
	return -1;
}
